package com.wanxi.version2;

public class People implements OnTheScreen {
    String gameName;

    public People() {
    }

    public People(String gameName) {
        this.gameName = gameName;
    }


    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    @Override
    public void onTheScreen() {
        System.out.println("上线啦，屏幕上见");
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("People{");
        sb.append("gameName='").append(gameName).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
